וַיְהִ֕י כְּב֥וֹא אַבְרָ֖ם מִצְרָ֑יְמָה וַיִּרְא֤וּ הַמִּצְרִים֙ אֶת־הָ֣אִשָּׁ֔ה כִּֽי־יָפָ֥ה הִ֖וא מְאֹֽד׃
And it came to pass, that, when Abram was come into Egypt, the Egyptians beheld the woman that she was very fair.
Rashi on Genesis
ויהי כבא אברם מצרימה AND IT CAME TO PASS WHEN ABRAM WAS COME INTO EGYPT —It should have said, “when they were come into Egypt”; but the use of the singular teaches us that he hid her in a chest, and when they demanded the custom dues they opened it and discovered her (Genesis Rabbah 40:5).
Sforno on Genesis
ויראו המצרים, all of them, when looking at Sarai, entertained the very thoughts Avraham had anticipated.